obj-m += hello.o
obj-m += process.o
obj-m += list.o
obj-m += thread.o
obj-m += school_demo1.o

ccflags-y := -DEBUG -g

KDIR := /lib/modules/$(shell uname -r)/build
PWD := $(shell pwd)

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

.PHONY:clean
clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean

test_hello:
	dmesg -C
	insmod hello.ko
	dmesg
	rmmod hello
	dmesg
test_process:
	dmesg -C
	insmod process.ko
	dmesg
	rmmod process
	dmesg
test_list:
	dmesg -C 
	insmod list.ko
	modinfo list.ko
	dmesg
	rmmod list
	dmesg 
